/*
* 单跳
* */
function dantiao(arr) {
    var count = 0;
    for (var i = arr.length - 1; i > 0; i--) {
        var data = arr[i - 1];
        var pre = arr[i];
        if (data != pre) {
            count++;
        } else {
            break;
        }
    }
    return count;
}

/*
* 长龙
* */
function changlong(arr) {
    var count = 0;
    for (var i = arr.length - 1; i > 0; i--) {
        var data = arr[i - 1];
        var pre = arr[i];
        if (data == pre) {
            count++;
        } else {
            break;
        }
    }
    return count;
}

/*
* 双跳
* */
function shuangtiao1(arr) {
    for (var i = arr.length - 1; i > 0; i--) {
        var data = arr[i];
    }
}

/*
* 三跳
* */
function shuangtiao1(arr) {
    for (var i = arr.length - 1; i > 0; i--) {
        var data = arr[i];
    }
}
